package student.aistar.model.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 本类用来演示:  private Integer userId;
 *
 * @author: success
 * @date: 2021/8/30 8:53 上午
 */
public class Video implements Serializable {
    private Integer id;

    private String title;

    private Date createDate;

    private Double price;

    private String videoUrl;

    //表中的外键是什么,此处就写什么.
    private Integer userId;

    public Video() {
    }

    public Video(Integer id, String title, Date createDate, Double price, String videoUrl, Integer userId) {
        this.id = id;
        this.title = title;
        this.createDate = createDate;
        this.price = price;
        this.videoUrl = videoUrl;
        this.userId = userId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Video{");
        sb.append("id=").append(id);
        sb.append(", title='").append(title).append('\'');
        sb.append(", createDate=").append(createDate);
        sb.append(", price=").append(price);
        sb.append(", videoUrl='").append(videoUrl).append('\'');
        sb.append(", userId=").append(userId);
        sb.append('}');
        return sb.toString();
    }
}
